Skip to main content

AddItem

Adds an item to the store.

Example#

storeItem = CL.UnlockContentItem()storeItem.name = weaponNamestoreItem.dependItemName = dependWeaponstoreItem.iconName = weaponNamestoreItem.contentType = CL.UnlockContentConfig.UnlockContentType.WeaponstoreItem.unlockRequireCoinNum = 1CL.UnlockContentConfig.AddItem(storeItem)

User Variables#

No user variables.

FAQ#

Where do I add this script?#

This script is already included by default in WMD_WeaponModDemo.txt.